import {
  createRouter,
  createWebHashHistory
} from 'vue-router'
import Home from '../views/Home/index.vue'
import PathNoFound from '@/views/PathNoFound/index.vue'

const router = createRouter({
  history: createWebHashHistory(
    import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '/',
    //   name: 'home',
    //   // component: Home
    // },
    // {
    //   path: '/home',
    //   redirect: {
    //     name: 'home'
    //   },
    //   meta: {
    //     title: "综合看板3.0"
    //   }
    // },
    // {
    //   path: '/Home2',
    //   meta: {
    //     title: "综合看板2.0"
    //   },
    //   component: () => import('../views/Home_v2.0/index.vue')
    // },
    // {
    //   path: '/ComprehensiveBoard',
    //   name: 'ComprehensiveBoard',
    //   meta: {
    //     title: "综合看板1.0"
    //   },
    //   component: () => import('../views/ComprehensiveBoard/index.vue')
    // },
    // {
    //   path: '/WarehouseBoard',
    //   name: 'WarehouseBoard',
    //   meta: {
    //     title: "仓库看板"
    //   },
    //   component: () => import('../views/WarehouseBoard/index.vue')
    // },
    // {
    //   path: '/QualityBoard',
    //   name: 'QualityBoard',
    //   meta: {
    //     title: "品质看板"
    //   },
    //   component: () => import('../views/QualityBoard/index.vue')
    // },
    // {
    //   path: '/ProductionMonitoringBoard',
    //   name: 'ProductionMonitoringBoard',
    //   meta: {
    //     title: "生产监控看板"
    //   },
    //   component: () => import('../views/ProductionMonitoringBoard/index.vue')
    // },
    // {
    //   path: '/EquipmentBoard',
    //   name: 'EquipmentBoard',
    //   meta: {
    //     title: "设备监控看板"
    //   },
    //   component: () => import('../views/EquipmentBoard/index.vue')
    // },
    // {
    //   path: '/SafetyAlarmWarningBoard',
    //   name: 'SafetyAlarmWarningBoard',
    //   meta: {
    //     title: "安灯预警看板"
    //   },
    //   component: () => import('../views/SafetyAlarmWarningBoard/index.vue')
    // },
    {
      path: '/IncomingMaterialsAwaitingInspectionReport',
      name: 'IncomingMaterialsAwaitingInspectionReport',
      meta: {
        title: "来料待检看板"
      },
      component: () => import('../views/IncomingMaterialsAwaitingInspectionReport/index.vue')
    },
    
    {
      path: '/:pathMatch(.*)*',
      meta: {
        title: "404"
      },
      component: PathNoFound
    }
  ]
})

export default router